<template>
    <div>
        <went :title="title"></went>
        <div v-html="detail.goods_introduce"></div>
        <van-action-bar>
            <van-action-bar-icon icon="chat-o" text="客服" @click="onClickIcon" />
            <van-action-bar-icon icon="cart-o" text="购物车" @click="onClickIcon" />
            <van-action-bar-icon icon="shop-o" text="店铺" @click="onClickIcon" />
            <van-action-bar-button type="danger" text="立即购买" @click="onClickButton" />
        </van-action-bar>
    </div>
</template>

<script setup>
import went from '@/components/went.vue';
let title = '详情'
import { ref } from 'vue';
import { detailApi } from '@/api/api'
import { useRoute } from 'vue-router';
let router = useRoute('')
let detail = ref([])
detailApi(router.params.goods_id).then(res => {
    console.log('详情数据', res);
    detail.value = res.data.message;
})
</script>

<style lang="scss" scoped></style>